package com.Imp;

import com.entity.Bussiness;
import com.mapper.BussinessMapper;
import com.util.MyBatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class BussinessMapperImpl implements BussinessMapper {
    public Bussiness getBussinessByStoreId(String storeId){
        SqlSession sqlSession = MyBatisUtil.openSqlSession();
        return sqlSession.selectOne("com.mapper.BussinessMapper.getBussinessByStoreId",storeId);
    }
    public List<Bussiness> getBussinessByMerchantId(String merchantId){
        SqlSession sqlSession = MyBatisUtil.openSqlSession();
        return sqlSession.selectList("com.mapper.BussinessMapper.getBussinessByMerchantId",merchantId);
    }
}
